package com.yilu.driver.mvp.contract;


import com.is.common.base.BaseModel;
import com.is.common.base.BasePresenter;
import com.is.common.base.BaseView;
import com.is.common.retrofitrxcache.RxCacheResult;
import com.yilu.driver.entity.Weather;
import rx.Observable;

/**
 * des:图片列表contract
 * Created by xsf
 * on 2016.09.14:38
 */
public interface ProjectListContract {
    interface Model extends BaseModel {
        //请求获取图片
        Observable<RxCacheResult<Weather>> getWeather(String key);
    }

    interface View extends BaseView {
        //返回获取的图片
        void returnWeather(Weather weather);
    }

    abstract class Presenter extends BasePresenter<View, Model> {
        //发起获取图片请求
        public abstract void getWeatherByCity(String key);
    }
}
